app.service("typeTemplateService",function ($http) {

    this.findPage=function(page,rows,entity){

        return $http.post("/typeTemplate/findPage.do?page="+page+"&rows="+rows,entity);

    }
    this.save=function (entity) {

        return $http.post("/typeTemplate/save.do",entity);

    }
    this.findOne=function(id){

        return $http.get("/typeTemplate/findOne.do?id="+id);
    }

    this.findSpecList=function(id){
        return $http.get("/typeTemplate/findSpecList.do?id="+id);

    }


    this.update=function(entity){

        return $http.post("/typeTemplate/update.do",entity);
    }


});